<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title><?php echo page_menu_title(); ?><?php echo bread_crumbs(' &raquo; ', true); ?><?php echo get_setting('Site Name'); ?></title>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta name="description" content="<?php echo get_setting('Meta Description'); ?>" />
		<meta name="keywords" content="<?php echo get_setting('Meta Keywords'); ?>" />
		<meta name="author" content="<?php echo get_setting('Author'); ?>" />
		<link rel="stylesheet" type="text/css" href="<?php echo $theme_url; ?>_css/main.css" title="Default Main.css" media="screen,projection" />
		<?php plugin('styles'); ?>
		<?php plugin('scripts'); ?>
		<?php if(!isPlugin('jQueryLibrary')) { ?><script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script><?php } ?>
		<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.0/jquery-ui.min.js"></script>
		<script type="text/javascript">
			$(document).ready(function () {
				$("table tr:not(.head)").mouseover(function() {$(this).addClass("over");}).mouseout(function() {$(this).removeClass("over");});
				$("table tr:even").addClass("alt");
				$('#nav li li ul li:first-child').addClass('first');
				$('#nav > li:has(ul)').hover(function () {
					$(this).addClass('hover').children('ul').stop('', true).slideDown(200);
				}, function () {
					$(this).removeClass('hover').children('ul').slideUp(200);
				});
				$('#nav li ul li:has(ul)').hover(function () {
					$(this).addClass('hover').children('ul').show('slide', { direction : 'left' }, 200);
				}, function () {
					$(this).removeClass('hover').children('ul').hide('slide', { direction : 'left' }, 200);
				});
				$('#nav li:has(.selected)').addClass('selected');
				$('a:has(img)').addClass('img');
				$("input").click(function () {this.select();});
			});
		</script>
	</head>

	<body>
		<div id="wrapper">
			<div class="gutter">
				<div id="logo">
					<div class="gutter">
						<h1><?php echo get_setting('Site Name'); ?></h1>
					</div>
				</div>
				<div id="navigation">
					<div class="gutter">
						<?php echo navigation("\n<ul id='nav'>\n%s\n</ul>\n", "\n<ul class='subMenu'>\n%s\n</ul>\n"); ?>
						<br class="clear" />
					</div>
				</div>
				<div id="contentSidebar">
					<div class="gutter">
						<div id="content">
							<div class="gutter">
								<div class="content-block">
									<div class="adBlock">
										<a href="#"><img src="https://www.google.com/adsense/static/en_US/images/wideskyscraper_img.jpg" /></a>
									</div>
									<div class="content-block-head">
										<h2><?php echo page_title(); ?></h2>
									</div>
									<div class="content-block-content">
										<a href="<?php echo link_to_home() ?>"><?php echo get_setting('Site Name'); ?></a><?php echo bread_crumbs(' &raquo; ', false, true); ?><?php echo page_menu_title(); ?> (This Page)<br/>
										<?php echo page_content(); ?>
										<br class="clear" />
									</div>
	<br class="clear" />
								</div>
								<br class="clear" />
							</div>
						</div>
						<div id="sidebar">
							<div class="gutter">
								<?php echo sidebar('%s','<div class="sidebar-block"><h2>%1$s</h2>%2$s</div>', array("\n<ul class='sideNav'>\n%s\n</ul>\n"), array("\n<ul class='sideNav'>\n%s\n</ul>\n", "\n<ul class='sidebarSubNav'>\n%s\n</ul>\n")); ?>
							</div>
						</div>
						<br class="clear" />
					</div>
				</div>
				<div id="footer">
					<div class="gutter">
						<div style="float:right;text-align:right;"><?php echo get_setting('Powered By'); ?>.</div><div style="margin-top:5px;clear:right;float:right;text-align:right;">Generated in <?php echo $page_generation_time; ?> seconds with <?php echo $GLOBALS['MYSQL_NUM_QUERIES'] ?> queries to the <?php echo (DB_USE == 'mysql' ? 'MySQL' : 'SQLite') ?> database.</div>
						<?php echo get_setting('Footer'); ?>
					</div>
					<br class="clear" />
				</div>
			</div>
		</div>
	</body>
</html>
